package br.edu.fanor.esfinge.services.impl;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import br.edu.fanor.esfinge.entity.Amigo;
import br.edu.fanor.esfinge.services.AmigoServiceRemote;

@Stateless
public class AmigoServiceImpl implements AmigoServiceRemote{
	
	@PersistenceContext
	private EntityManager em; 

	@Override
	public Amigo inserir(Amigo amigo) {
		em.persist(amigo);
		return amigo;
	}
	
	

}
